package com.xx.bysj.service;

import com.xx.bysj.dto.HnRole;
import com.xx.bysj.utils.Result;
import org.springframework.security.core.Authentication;

import java.util.Map;

public interface RoleService {
    /**
     * 查询角色
     * @param role
     * @param page
     * @param limit
     * @return
     */
    Result query(HnRole role, int page, int limit);

    Map<String, Object> getMenuTreeMap(Integer id);

    Result addRole(Authentication authentication, HnRole role);

    Result updateRole(Authentication authentication, HnRole role);

    Result deleteRole(Integer roleId);

    Result queryRole(HnRole role);
}
